using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Data;
using System.Windows.Forms;
using THSERP.BusinessEntities;
using THSERP.BaseProvider;


namespace THSERP.Modules.Processing
{
    public partial class ICProductQuantitativesGridControl : THSGridControl
    {
        public ICProductQuantitativesGridControl()
        {
            InitializeComponent();
        }

        public ICProductQuantitativesGridControl(IContainer container)
        {
            container.Add(this);

            InitializeComponent();
        }

        public override void InitGridControlDataSource()
        {
            //base.InitGridControlDataSource();
            ProcessingEntities entity = (ProcessingEntities)((BaseModuleERP)Screen.Module).CurrentModuleEntity;
            BindingSource bds = new BindingSource();
            bds.DataSource = entity.ICProductQuantitativesList;
            this.DataSource = bds;
        }
    }
}
